﻿using System;
using System.Data;
using Framework;

namespace Enterprise.Admin.Handle
{
    /// <summary>
    /// 获取设置详细
    /// </summary>
    public partial class GetSettingDetailsJson : AdminBasePage
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            string action = Fq("action").SafeToString();
            string language = Fq("CoLanguage").SafeToString();
            var settingServie = new SettingService();
            var row = settingServie.GetByLanguage(action, language);
            object result = new
                                {
                                    CoLanguage = row["CoLanguage"].SafeToString(),
                                    Value = row[action].SafeToString(),
                                };
            Json(result);
        }
    }
}